<form id="form" action="<?php echo site_url(array('cliente','insertar'));?>" method="post">
	<table class="form-table">
		<tr>
			<td><label>Documento:</label></td>
			<td>
				<input id="documento" maxlength="35" size="25" name="documento" class="validate[required, custom[number], minSize[8]]" value="<?php echo post_value('documento');?>"/>		
			</td>	
		</tr>	
		<tr>
			<td><label>Nombre:</label></td>
			<td>
				<input id="nombres" maxlength="25" size="25" name="nombres" class="validate[required]" value="<?php echo post_value('nombres');?>"/>
			</td>	
		</tr>
		<tr>
			<td><label>Apellido:</label></td>
			<td>
				<input id="apellidos" maxlength="35" size="25" name="apellidos" value="<?php echo post_value('apellidos');?>" class="validate[required]"/>	
			</td>	
		</tr>		 
		<tr>
			<td><label>Password:</label></td>
			<td>
				<input id="password" type="password" maxlength="25" size="25" name="password" class="validate[required], minSize[6]"/>
			</td>			
		</tr>	
		<tr>
			<td><label>Repita Password:</label></td>
			<td>
				<input id="cpassword" type="password" maxlength="25" size="25" name="cpassword" class="validate[required], equals[password], minSize[6]"/>
			</td>
		</tr>
		<tr>
			<td><label>Email:</label></td>
			<td>
				<input id="email" maxlength="35" size="25" name="email" value="<?php echo post_value('email');?>" class="validate[required,custom[email]]"/>
			</td>	
		</tr>
		<tr>
   			<td><label for="pais_fk">Pais</label></td>
   			<td>
				<select name="pais_fk" style="width: 200px;">
					<option></option>
					<?php foreach ($paises as $pais):?>
					<option <?php echo 'selected="selected"';?> value=<?php echo $pais['id'];?>><?php echo $pais['nombre'];?></option>
					<?php endforeach;?>
				</select>
			</td>			    		
		</tr>
   		<tr>
   			<td><label for="departamento_fk">Departamento</label></td>
   			<td>
				<select name="departamento_fk" style="width: 200px;">
					<option></option>
					<?php foreach ($departamentos as $departamento):?>
					<option <?php echo 'selected="selected"';?> value=<?php echo $departamento['id'];?>><?php echo $departamento['nombre'];?></option>
					<?php  endforeach;?>
				</select>
			</td>		    		
		</tr>
		<tr>
			<td><label>Barrio:</label></td>
			<td>
				<input id="barrio" maxlength="35" size="25" name="barrio" value="<?php echo post_value('barrio');?>"/>
			</td>	
		</tr>
		<tr>
			<td><label>Direccion:</label></td>
			<td>
				<input id="direccion" maxlength="35" size="25" name="direccion" value="<?php echo post_value('direccion');?>"/>
			</td>	
		</tr>
		<tr>
			<td><label>Celular:</label></td>
			<td>
				<input id="celular" maxlength="35" size="25" name="celular" value="<?php echo post_value('celular');?>"/>
			</td>	
		</tr>
		<tr>
			<td><label>Coordenadas:</label></td>
			<td>
				<input id="coordenadas" maxlength="35" size="25" name="coordenadas" value="<?php echo post_value('coordenadas');?>"/>
			</td>
			<td><a href="<?php echo site_url(array('cliente','cancelar'));?>">Volver</a></td>	
		</tr>
		
	</table>
	
	<input type="submit" value="Confirmar"/>
</form>